<template>
  <div class="list">
    <div v-for="(item,index) in list" :key="index" class="listItem">
      <img :src="item.img" alt="">
      <span>{{item.text}}</span>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    list:{
      type:Array,
      default(){
        return []
      }
    }
  }
}
</script>

<style scoped>
.list{
  /* display: flex; */
}
.listItem{
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
}
.listItem img{
  width: 17px;
  margin-right: 8px;
}
.listItem span{
  width: 100%;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.listItem:last-child span{
  border:none;
}
</style>
